package be.gnx.log4jeclipse.perspective;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import be.gnx.log4jeclipse.perspective.view.Log4JEclipseView;
import be.gnx.log4jeclipse.perspective.view.Log4JEntriesView;
import be.gnx.log4jeclipse.perspective.view.Log4JEntryView;

public class Perspective implements IPerspectiveFactory {

  public void createInitialLayout(IPageLayout layout) {
    layout.setEditorAreaVisible(false);
    IFolderLayout folderLeft = layout.createFolder("folderLog4JEclipse",
        IPageLayout.LEFT, 0.8f, layout.getEditorArea());
    folderLeft.addView(Log4JEclipseView.class.getName());
    IFolderLayout foLeftTop = layout.createFolder("folderLog4JEntries",
        IPageLayout.RIGHT, 0.2f, "folderLog4JEclipse");
    foLeftTop.addView(Log4JEntriesView.class.getName());
    IFolderLayout foRightTop = layout.createFolder("folderLog4JEntry",
        IPageLayout.BOTTOM, 0.5f, "folderLog4JEntries");
    foRightTop.addView(Log4JEntryView.class.getName());
  }

}
